import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import { Router, useRouterHistory } from 'react-router'
import { createHashHistory } from 'history'
import routes from './routes'
import configureStore from './configureStore'

const store = configureStore();
const appHistory = useRouterHistory(createHashHistory)({queryKey: false});

render(
    <Provider store={store}>
        <Router routes={routes} history={appHistory}/>
    </Provider>,
    document.getElementById('appPage')
);
